package com.hhh.sun.vo.req;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.models.auth.In;
import lombok.Data;

import java.util.Date;

@ApiModel("添加订单前端封装类")
@Data
public class OrderAddVo {
    /**
     * 用户名字
     */
    @ApiModelProperty(value = "用户名字", position = 1)
    private String userName;
    /**
     * 充电站名字
     */
    @ApiModelProperty(value = "充电站名字", position = 2)
    private String chargingName;
    /**
     * 预约开始时间
     */
    @ApiModelProperty(value = "预约开始时间", position = 3)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm",timezone = "Asia/Shanghai")
    private Date beginTime;
    /**
     * 预约时长
     */
    @ApiModelProperty(value = "预约时长", position = 4)
    private Integer lastTime;

}
